﻿using Volo.Abp.Domain.Entities.Auditing;

namespace FlyingEye.DeviceMaintenance
{
    /// <summary>
    /// 设备部件特征点模型
    /// </summary>
    public class DevicePartCharacteristicModel : AuditedEntity<Guid>
    {
        public DevicePartCharacteristicModel(
            Guid devicePartId,
            string characteristicName,
            string dateType,
            string address)
        {
            DevicePartId = devicePartId;
            CharacteristicName = characteristicName;
            DateType = dateType;
            Address = address;
        }

        public Guid DevicePartId { get; set; }

        /// <summary>
        /// 特征名称，例如：温度、湿度、压力等
        /// </summary>
        public string CharacteristicName { get; set; }

        /// <summary>
        /// 特征值的数据类型
        /// </summary>
        public string DateType { get; set; }

        /// <summary>
        /// 特征值的地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 特征值数据长度
        /// </summary>
        public int Length { get; set; }
    }
}
